<script type="text/javascript">
Client_lb_old=jQuery('#client_idControl span').html();
</script>
{form name="profile_form" no_load_js="true"}
    {if $user->id > 0}
        {control type=hidden name=id value=$user->id}
    {/if}
    {control type=hidden name=action value='manage_save'}
    {control type=hidden name=ajax_action value='1'}

    <table class="_profile_detailpage">
        <tr>
            <td width="50%">
                {if $user->id >0}
                    {control type=hidden name='user_id' value=$user->user_id}
                    {control type=text name='client_id'  label=$_TR.client_id class="twocontrol_on_row" size=30 value=$user->client_id readonly=readonly}
                {else}
                    {* check add new, if add new -> don't reload grid*}
                    {control type=hidden name='add_new' value=1}
                    {* Show select User*}
                    {control type=dropdown name='user_id'  label=$_TR.cms_user items=$users_list  }             
                    {control type=text name='client_id'  label=$_TR.client_id class="twocontrol_on_row" size=30 value=$user->client_id class="number required"}       
                {/if}
                
               
                {control type=text name='firstname'  label=$_TR.firstname class="twocontrol_on_row" size=30 value=$user->firstname  }
                {control type=text name='lastname'  label=$_TR.lastname class="twocontrol_on_row" size=30 value=$user->lastname  }
                {control type=text name='companyname'  label=$_TR.companyname class="twocontrol_on_row" size=30 value=$user->company_name  }
                {control type=text name='tel1'  label=$_TR.tel1 class="twocontrol_on_row" size=30 value=$user->tel1  }
                {control type=text name='tel2'  label=$_TR.tel2 class="twocontrol_on_row" size=30 value=$user->tel2  }
                {control type=text name='skypename'  label=$_TR.skypename class="twocontrol_on_row" size=30 value=$user->skype }
                {control type=text name='identity'  label=$_TR.identity class="twocontrol_on_row" size=30 value=$user->tc_identity}
                {control type=text name='fax'  label=$_TR.fax class="twocontrol_on_row" size=30 value=$user->fax  }
            </td>
            <td>
                {control type=text name='tax_office'  label=$_TR.tax_office class="twocontrol_on_row" size=30 value=$user->tax_office }
                {control type=text name='tax_number'  label=$_TR.tax_number class="twocontrol_on_row" size=30 value=$user->tax_number  }
                {control type=text name='email'  label=$_TR.email class="twocontrol_on_row email" size=30 value=$user->email  }
                {control type=text name='website'  label=$_TR.website class="twocontrol_on_row" size=30 value=$user->website  }
                {control type=text name='address'  label=$_TR.address class="twocontrol_on_row" size=30 value=$user->address  }
                {control type=text name='city'  label=$_TR.city class="twocontrol_on_row" size=30 value=$user->city  }
                {control type=text name='country'  label=$_TR.country class="twocontrol_on_row" size=30 value=$user->country  }
                {control type=text name='postcode'  label=$_TR.postcode class="twocontrol_on_row" size=30 value=$user->postcode}
            </td>
        </tr>
    </table>
    <input id="submitSubmit" class="button" type="submit" value="Save">
    {/form}
{literal}

<style type="text/css">
    #profile_form label.error{
        width: auto !important;
        position: relative;
    }    
    
</style>
{/literal}

